// Arduino libraries
#include "WConstants.h"
#include "WProgram.h"
#include <inttypes.h>
#include <math.h>
#include "defines.h"
#include "TinyGPS.h"
#include "SoftwareSerial.h"


SoftwareSerial nmea(3,4);
TinyGPS gps;

int GPS_fix = NONE;

void setup()
{
  Serial.begin(38400);
  nmea.begin(38400);
}

void loop()
{
  GPS_NMEA();
  if (GPS_fix == fix_3D){
    GPS_print();
  }else{
    Serial.println("FUCK");
  }
}

void GPS_print ()
{
 Serial.print("Lat: ");
 Serial.print(current_loc.lat);
 Serial.print(" Lon: ");
 Serial.print(current_loc.lon);
 Serial.print(" Alt: ");
 Serial.print((current_loc.alt / 100));
 Serial.print(" Knots: ");
 Serial.print(ground_speed);
 Serial.print(" Bearing: ");
 Serial.print(ground_course);
 Serial.println();
}

